package JavaSE.ReflectLearning.Properties;

public class Person {
    int age;
    String name;

    public Person(int age, String name) {
        this.age = age;
        this.name = name;
    }

    @Override
    public String toString() {
        return age + "岁的" + name;
    }

    public void eat(String food, int count) {
        System.out.println(this + " 在吃 " + food + ", 吃了" + count + "个");
    }
}
